import { RowProps } from "element-plus/es";
import { PropType } from "vue";
import { FormSchema } from "..";
import { Recordable } from "/#/global";

export const basicProps = {
  model: {
    type: Object as PropType<Recordable>,
    default: {},
  },
  // 标签宽度  固定宽度
  labelWidth: {
    type: [Number, String] as PropType<number | string>,
    default: 100,
  },
  // 表单配置规则
  schemas: {
    type: [Array] as PropType<FormSchema[]>,
    default: () => [],
  },
  rowProps: {
    type: Object as PropType<RowProps>,
    default: { justify: 'start' }
  },
};
